import { MemberState } from '@store/reducers/member.reducer';
import { createSelector, createFeatureSelector } from '@ngrx/store';

export const featureKey = 'member';
export const selectMemberState = (state: MemberState) => state;
export const getMember = createFeatureSelector<MemberState>(featureKey);

export const getModalVisible = createSelector(selectMemberState, (state: MemberState) => state.modalVisible);
export const getModalType = createSelector(selectMemberState, (state: MemberState) => state.modalType);
export const getUserId = createSelector(selectMemberState, (state: MemberState) => state.userId);
export const getLikedId = createSelector(selectMemberState, (state: MemberState) => state.likedId);
export const getShareInfo = createSelector(selectMemberState, (state: MemberState) => state.shareInfo);
